<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>${appname}</title>
<%@ include file="/WEB-INF/jsp/common/css_js_base.jsp"%>
<script type="text/javascript" src="/static/js/schedule/taskInfo.js"></script>
</head>
<body class="hold-transition skin-green sidebar-mini">
	<div class="wrapper">
		<%@ include file="/WEB-INF/jsp/common/topbar.jsp"%>
		<%@ include file="/WEB-INF/jsp/common/sidebar.jsp"%>
		<div class="content-wrapper">
			<section class="content">
				<div class="box">
					<div class="box-header with-border">
						<h3 class="box-title">任务调度列表</h3>
						<button style="float:right;" onclick="javascript:window.location.reload(true)">刷新</button>
					</div>
					<ul style="background-color: #D1EEEE">
					<c:forEach items="${taskInfo}" var="groupView">
						<li>应用：${groupView.group} </li>
						<c:forEach items="${groupView.tasks}" var="taskView">
							<li style="margin-left: 50px;">
								任务：<t>${taskView.taskName}</t>
								<span style="margin-left: 8px;" />表达式：
								<input type="text" taskTag="${taskView.taskName}" value="${taskView.cornExpress}" />&nbsp;&nbsp;&nbsp;
								<a class="save" href="javascript:void(0)">保存</a>
							</li>
							<c:forEach items="${taskView.nodes}" var="node">
								<li style="margin-left: 100px;margin-top: 4px;">
									UUID:${node.uuid}<span style="margin-left: 3px;" />
									IP：${node.ip}<span style="margin-left: 3px;" />
									状态：${node.status}<span style="margin-left: 3px;" />
									<a href="javascript:void(0)" tag="${node.schemaKey}" class="mt">手动触发</a>
								</li>
							</c:forEach>
						</c:forEach>
					</c:forEach>
					</ul>
				</div>
			</section>
		</div>
		<%@ include file="/WEB-INF/jsp/common/footer.jsp"%>
	</div>
</body>
</html>